//
//  UIImage+UIImage_new1.m
//  MyWeChat
//
//  Created by 蔡欣东 on 15/10/5.
//  Copyright © 2015年 蔡欣东. All rights reserved.
//

#import "UIImage+UIImage_new1.h"

@implementation UIImage (UIImage_new1)
+(UIImage*)resizableImage:(NSString*)name{
    UIImage* image = [UIImage imageNamed:name];
    
    CGFloat top = image.size.height*0.6;
    CGFloat bottom = image.size.height*0.5;
    CGFloat lAndr = image.size.height*0.5;
    
    return [image resizableImageWithCapInsets:UIEdgeInsetsMake(top, lAndr, bottom, lAndr)];
}
@end
